
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>资源管理</title>

<%@ include file="/page/include.jsp" %>
<link rel="stylesheet" type="text/css" href="${rootPath}/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
 <script>
	var nodes = [];
	var treeObj=null;
 </script>
</head>
 <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="framebody" role="main">
        	<div class="page-title">
              <div class="title_left">
                <h3>资源管理</h3>
              </div> 
            </div>
            <div class="clearfix"></div>
        	<div class="row">
              <div class="col-md-3 col-sm-3 col-xs-3" >
                <div class="x_panel" style="height:90%;">
                	<div class="x_content">
                		<div class="row" >
						   <ul id="resTree" class="ztree"></ul>
			            </div>
                	</div>
                </div>
              </div>
              <div class="col-md-9 col-sm-9 col-xs-9" id="resInfo" style="display:none;">
              	<div class="x_panel" style="height:90%;">
                  <div class="x_content">
                    <form class="form-horizontal form-label-left" novalidate id="editAjaxForm" method="post" enctype="multipart/form-data">
                      <span class="section">维护资源</span>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="parentName">上级资源:
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
	                       <input type="hidden" id="id" name="id" />
						   <input type="hidden" id="version" name="version" />
                           <input id="parentId" name="parentId" type="hidden" value="" />
                           <span><input type="text" id="parentName" name="parentName" class="dropDownTreeMenu form-control col-md-3 col-xs-12"  /></span>
                           <i class="dropDownTreeMenu"></i>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="resourceName"><span class="required"><font color="red">*</font></span>资源名称：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input type="text" id="resourceName" name="resourceName"  class=" form-control col-md-3 col-xs-12" />
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="resourceType"><span class="required"><font color="red">*</font></span>资源类型：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <select class="selectpicker form-control col-md-3 col-xs-12" id="resourceType" name="resourceType"  >
                          </select>
                        </div>
                      </div>
                        <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="sortNo"><span class="required"><font color="red">*</font></span>排序：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input type="text" id="sortNo" name="sortNo" class="form-control col-md-3 col-xs-12" />
                        </div>
                      </div>
                        <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="status"><span class="required"><font color="red">*</font></span>状态：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <select class="selectpicker form-control col-md-3 col-xs-12" id="status" name="status">
                               </select>
                        </div>
                      </div>
                        <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="permission">权限命令：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input type="text" id="permission" name="permission" class="form-control col-md-3 col-xs-12" />
                        </div>
                      </div>
                        <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="url"><span class="required"><font color="red">*</font></span>资源路径：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input type="text" id="url" name="url" class="form-control col-md-3 col-xs-12" />
                        </div>
                      </div>
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="iconClass">图标样式：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                          <input type="text" id="iconClass" name="iconClass" class="form-control col-md-3 col-xs-12" />
                        </div>
                      </div>
                       <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="resourceIntro">资源描述：
                        </label>
                        <div class="col-md-3 col-sm-3 col-xs-12">
                           <textarea id="resourceIntro" name="resourceIntro" class="form-control col-md-3 col-xs-12"></textarea>
                            <span style="vertical-align:bottom">50字以内</span>
                        </div>
                      </div>
                    </form>
					 <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                           <a class="btn btn-primary" id="btn_eidt_resource"><i class="fa fa-check fa-fw"></i>保 存</a>
                        </div>
                      </div>
                  </div>
                </div>
              </div>
            </div>
       </div>
      </div>
	</div>
<!-- 菜单下拉列表菜单Tree -->
<div id="resContent" style="display:none; position: absolute;background:#fff;overflow: auto;width:150px; height: 240px; border: 1px solid #aaa; z-index:999">
	<ul id="treeMenu" class="ztree" style="margin-top:0;"></ul>
</div>
</body>
<script src="${rootPath }/statics/plugins/zTree/js/jquery.ztree.all-3.5.min.js"></script>
<script src="${rootPath }/js/auth/resource/resource_list.js" charset="utf-8"></script>
</html>